import java.util.HashMap;
import java.util.Vector;

import OddsObjects.OddsTemplate;


public class DataStorage {
	
	HashMap<SportsEventID, Vector<OddsTemplate>> hashByEvent = new HashMap<>();
	
	void addToEvent( SportsEventID id, Vector<OddsTemplate> listOfData) {
		
		if( hashByEvent.containsKey(id)){
			listOfData.addAll(hashByEvent.get(id));
		}
		
		hashByEvent.put(id, listOfData);
	}
	
	
	Vector<OddsTemplate> getDataByEvent(SportsEventID id ) {
		return hashByEvent.get(id);
	}

}
